<template>
  <div>Home</div>
  <span>展示count ： {{ $store.state.count }}</span>
  <br />
  <button @click="incrementAction()">加</button>
  <button @click="add()">加</button>
  <button @click="incrementAction(10)">加 10</button>
  <button @click="decrementAction()">减去</button>
</template>

<script>
import { mapActions } from 'vuex'
import { useStore } from 'vuex'
export default {
  methods: {
    ...mapActions(['incrementAction', 'decrementAction']),
    ...mapActions({
      add: 'incrementAction',
    }),
  },
}
</script>

<style lang="scss" scoped></style>
